package cn.stylefeng.guns.modular.system.enums;

import lombok.Getter;

/**
 * @Author: lzy
 * @Description: 异常类枚举
 * @Date: CREATE IN 2019/5/17 10:50
 */
@Getter
public enum ResultEnum implements CodeEnum {

    WHATIS_SITUATION(0,"什么情况,未知异常"),
    CODE_NOT_EXIST(1,"参数不存在"),
    NO_MANDATORY_FIELDS(2,"没有必传字段"),
    SITE_UPDATE_ERROR(3,"更新失败"),
    SITE_DELETE_ERROR(4,"删除失败"),
    PHONE_DOES_NOT_EXIST_OR_IS_REGISTERED(5,"手机不存在或者手机已注册"),
    USER_DOES_NOT_EXIST(6,"用户不存在"),
    OVERSIZED_RATES(7,"费率过大"),
    RATE_IS_ABNORMAL(8,"费率不正常"),
    PROXYID_DOES_NOT_EXIST(9,"代理id不存在"),
    PROXY_DOSE_NOT_EXIST(10,"代理用户不存在"),
    UPDATE_PROXY_DOSE_NOT_EXIST(11,"被修改的代理用户不存在"),
    PLEASE_SET_PAGINATION_PARAMETERS(12,"请设置代理参数"),
    EMAIL_IS_EMPTY(13,"邮箱为空"),
    UPDATE_RATE_AUTH_ERROR(14,"您没有修改此用户的权限"),
    WITHDRAWAL_ID_DOES_NOT_EXIST(14,"取款id不存在"),
    STATIC_EXCEPTION(15,"状态异常")
    ;

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
